#ifndef PLAYERWGT_H
#define PLAYERWGT_H
#include <QWidget>
#include "titlewgt.h"
#include "centerwgt.h"
#include "tailwgt.h"
class QMouseEvent;
class  QPushBtton;
class PlayerWgt : public QWidget
{
    Q_OBJECT
public:
    explicit PlayerWgt(QWidget *parent = nullptr);


protected:
    //拖拽窗口
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);

private:
    QPoint point_ ;//当前窗口坐标
    bool isPress_ = false;
    titleWgt* titleWgt_ = nullptr;
    centerWgt* centerWgt_ = nullptr;
    tailWgt * tailWgt_ = nullptr;

signals:

};

#endif // PLAYERWGT_H
